package com.zn.opit.tech.easyexcel.exception;

import lombok.Getter;

@Getter
public enum EasyExcelExtExceptionTypes implements ExtExceptionInfo {

    EXPORT_FAILED("EXPORT_FAILED", "导出失败"),
    IMPORT_FILE_IS_EMPTY("IMPORT_FILE_IS_EMPTY", "导入文件为空"),
    IMPORT_PARSE_DATA_FAILED("IMPORT_PARSE_DATA_FAILED", "导入时解析数据失败"),
    DATA_VALID_FAILED("DATA_VALID_FAILED", "数据校验失败"),
    ;

    final String code;
    final String msg;

    EasyExcelExtExceptionTypes(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
